package Work02;
/*new Movie("《肖生克的救赎》" , 9.7 ,  "罗宾斯")
 *       new Movie("《霸王别姬》" , 9.6 ,  "张国荣、张丰毅")
 *       new Movie("《阿甘正传》" , 9.5 ,  "汤姆.汉克斯")*/
public class Movie {
    private String title;
    private double score;
    private String actor;

    public Movie() {
    }

    public Movie(String title, double score, String actor) {
        this.title = title;
        this.score = score;
        this.actor = actor;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    @Override
    public String toString() {
        return
                "电影名:" + title + ", 电影评分:" + score + ", 电影主演:" + actor;
    }
}
